package org.anderground.editor.edits;

import org.anderground.core.model.Transition;

public class SetTransitionTimeAction extends
		AbstractAction<Transition, Integer> {

	public SetTransitionTimeAction(Transition object, Integer value) {
		super(object, value);

	}

	@Override
	protected Integer getCurrentValue() {
		return getTarget().getTime();
	}

	@Override
	protected void setCurrentValue(Integer value) {
		Editor.edit(getTarget()).setTime(value);

	}

}
